import {instance} from '../utils/request'

export const wxLogin = (code)=>{
  return instance.get(`login/wx/${code}`)
}

export const findUserInfo = () =>{
  return instance.get("user/find/info")
}

export const updateSelf =(data) =>{
  return instance.post("user/app/update",data)
}

export const uploadFile = (data)=>{
  return instance.upload("user/avatar/upload", data)
}
